package com.study.jvm;

import java.util.PriorityQueue;
import java.util.Scanner;

public class CommandTest {

    public static void main(String[] args) {


        PriorityQueue<Integer> integers = new PriorityQueue<>();

        integers.add(1);
        integers.add(3);
        integers.add(5);
        integers.add(2);
        int m = integers.size();
        for (int i = 0; i < m; i++) {
            System.out.println(integers.poll());

        }
        Scanner scanner = new Scanner(System.in);

        String next = scanner.next();


    }

}
